package com.cctv.user.service.impl;

import com.cctv.user.dao.UserInfoRepostory;
import com.cctv.user.dataobject.UserInfo;
import com.cctv.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @Author: cctv
 * @Date: 2019/6/12 17:10
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserInfoRepostory userInfoRepostory;

    @Override
    public UserInfo findByWxOpenid(String wxOpenid) {
        return userInfoRepostory.findByWxOpenid(wxOpenid);

    }
}
